"""import time
import random
a=0
q=0
s=100
x=0
y=5
while q<1000 and s>1:
    print(a,s)
    b=int(input("1"))
    while b==1:
        if a==0:
            c=random.randint(0,1)
            if c==0:
                a=a+1
                print("一")
                time.sleep(1)
                b=int(input("2"))
            else:
                a=a
        if b==1 and a==1:
            b=random.randint(0,5)
            if b<3:
                a=a+1
                print("二")
                time.sleep(1)
                b=int(input("3"))
            else:
                a=a
        if b==1 and a==2:
            b=random.randint(0,10)
            if b<5:
                a=a+1
                print("三")
                time.sleep(1)
            else:
                a=a
        if a==3:
            b=b+1
        else:
            b=int(input("1,2,3"))
    b=int(input("?"))
    if b==2:
        z=random.randint(x,y)
        z_1=z
        a_1=a*a
        while z>1:
            z=z-a_1
            s=s-z
            print(f"abc{s},abc{z}")
            time.sleep(1)
        if z<1:
            s=s+25
            print(f"ann{s,q}")
            q=q+z_1
            x=x+5
            y=y+5
    if b==3 and q>0:
        b=int(input("?"))
        if q>b:
            q=q-b
            s=s+b
if s>0:
    print("你赢了")
if s<1:
    print("你输了")"""
import time
import random
a=1
q=0
x=0
d=5
s=100
while q<100 and s>0:
    b=int(input("?"))
    if b==1:
        b_1=int(input("!"))
        qq=a*2
        if b_1==1:
            a=a+1
            time.sleep(0.1)
            print(a,q)
    if b==2:
        g=random.randint(x,d)
        ggg=g
        while g>0 and s>0:
            aa=a*a
            g=g-aa
            gg=g/a
            s=s-gg
            print(a,s,g)
            time.sleep(0.5)
        if g<1 and s>0:
            s=s+s
            q=q+ggg
            x=x+d
            d=d+x
            print(f"{s} {q} {x}--{d}")
    if b==3:
        b_2=int(input("?"))
        q=q-b_2
        s=s+b_2

if s>0:
    print("你赢了")
if s<1:
    print("你输了")